﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.Samples.ServiceHosting.StorageClient;
using System.Data.Services.Client;

namespace ACSWebRoleDemo_WebRole
{
    /// <summary>
    /// Storage context for Azure Tables
    /// </summary>
    public class StorageContext : TableStorageDataServiceContext 
    {
        internal StorageContext(StorageAccountInfo accountInfo)
            : base(accountInfo)
        {
        }

        public IQueryable<User> Users
        {
            get
            {
                return this.CreateQuery<User>("Users");
            }
        }

    }
}
